#ifndef __DMA_ADC2PWM_H
#define __DMA_ADC2PWM_H

#include "stm32f4xx.h"
#include "stm32f4xx_dma.h"

typedef struct Device_DMA_ADCToPWM_Struct{
    uint16_t*               DMA_BufAddr;
    
    ADC_TypeDef*            ADC_Port;
    uint8_t                 ADC_Channel;
    
    TIM_TypeDef*            PWM_TIM_Port;
    void                    (*PWM_TIM_SetCompareFunc)(TIM_TypeDef*, uint32_t);
    uint16_t                PWM_TIM_Period;
}Device_DMA_ADCToPWM;

void BSP_DMA_ADC_TransportADCData(Device_DMA_ADCToPWM* dv);

#endif